<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>Docker容器列表</title>
    <jsp:include page="common/common_head.jsp"></jsp:include>


</head>
<body  data-spy="scroll" data-target=".navbar">



<jsp:include page="common/common_banner_app.jsp"></jsp:include>
<div style="height:30px"></div>
<div class="container">


	<table  style="table-layout:fixed;" class="table  table-striped table-bordered table-hover " id = "showTable">

		<thead>
			<tr>
				<th>序号</th>
                <th>宿主机</th>
                <th>ip</th>
                <th>支持docker</th>
				<th>运行容器数</th>
                <th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${hosts}" var="c" varStatus="v">
			<tr>
				<td>${v.index + 1}</td>
                <td><a href="#">${c.hostName}</a></td>
                <td style="word-wrap:break-word;" >${c.ip}</td>
                <td>${c.docker.enable}</td>
                <td><a href="/docker/containers.html?slaves=${c.hostName}">${c.docker.instances.size()}</a></td>
                <td>
                    <c:if test="${c.docker.enable}">
                    <a class="btn" href="/docker/container_create.html?withIp=yes&slaves=${c.hostName}">创建指定IP容器</a>
                    <a class="btn" href="/docker/container_create.html?withIp=false&slaves=${c.hostName}">创建容器</a>
                    <a class="btn" href="/docker/host_network_configure.html?slaves=${c.hostName}">配置该机网络</a>
                    </c:if>
                </td>
			</tr>
		</c:forEach>

		</tbody>

	</table>






<jsp:include page="common/common_js.jsp"></jsp:include>



	<script>




	</script>
</body>
</html>